﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UML2DOC.Controller.Commands
{
    public abstract class Command
    {
        public virtual bool CanUndo
        {
            get { return false; }
        }
        public virtual bool CanRedo
        {
            get { return false; }
        }

        public abstract void Execute();

        public virtual void Undo()
        {
            throw new System.NotImplementedException("This command does not support undo.");
        }

        public virtual void Redo()
        {
            throw new System.NotImplementedException("This command does not support undo.");
        }


    }
}
